home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
minix
/
libsrc~1.z
/
libsrc~1
/
stsetjmp.cpp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-12-28
|
415 b
|
38 lines
#
.globl _setjmp
.globl _longjmp
#ifdef ACK
.text
.data
.bss
#endif ACK
.text
.even
_setjmp:
movl sp@(4),a0
movl sp@,a0@
moveml d2-d7/a2-a7,a0@(4)
clrl d0
rts
.text
.even
_longjmp:
movl sp@(4),a0
#ifdef __GNUC__
#ifndef __MSHORT__
movl sp@(8),d0
#else
movw sp@(8),d0
#endif
#else
movw sp@(8),d0
#endif
bne L1
movl #1,d0 | may not be 0
L1:
moveml a0@(4),d2-d7/a2-a7
movl a0@,sp@
rts